<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        body {
            height: 2000px;
        }

        /* a {
            position: fixed;
            right: 0;
            bottom: 0;
        } */

        div {
            height: 500px;
            background-color: #f00;
            margin: 40px;
        }
    </style>
</head>

<body>

    <!-- 
        锚点：相当于网页中的一个快速定位器
        实现：href="#id"
     -->


    <!-- 不写的时候会刷新页面 -->
    <!-- 阻止页面跳转 -->
    <!-- <a href="javaScript:;">超链接</a> -->


    <!-- 返回顶部   #或者#top -->
    <!-- <a href="#">返回顶部</a> -->



    <a href="#home">home</a>
    <a href="#work">work</a>
    <a href="#contact">contact</a>




    <div id="home">home</div>

    <div id="work">work</div>

    <div id="contact">contact</div>

</body>

</html>